package com.study.spmongodb.wwj.collections;

import java.util.concurrent.ArrayBlockingQueue;

/**
 * @author study
 * @version 1.0
 * @date 2020/12/17 10:37
 */
public class ArrayBLockingQueueExample {
    /**
     * FIFO(first in first out)
     *
     * @param size
     * @param <T>
     * @return
     */
    public static <T> ArrayBlockingQueue<T> create(int size) {
        return new ArrayBlockingQueue<T>(size);
    }

    public static void pritln() {
        System.out.println(Thread.currentThread().getName());
    }
}
